Optimal. Leaf size=202 \[ \frac{b^2 p r \log (a+b x)}{2 h (b g-a h)^2}-\frac{b^2 p r \log (g+h x)}{2 h (b g-a h)^2}-\frac{\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{2 h (g+h x)^2}+\frac{b p r}{2 h (g+h x) (b g-a h)}+\frac{d^2 q r \log (c+d x)}{2 h (d g-c h)^2}-\frac{d^2 q r \log (g+h x)}{2 h (d g-c h)^2}+\frac{d q r}{2 h (g+h x) (d g-c h)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.111538, antiderivative size = 202, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 2, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.069, Rules used = {2495, 44} \[ \frac{b^2 p r \log (a+b x)}{2 h (b g-a h)^2}-\frac{b^2 p r \log (g+h x)}{2 h (b g-a h)^2}-\frac{\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{2 h (g+h x)^2}+\frac{b p r}{2 h (g+h x) (b g-a h)}+\frac{d^2 q r \log (c+d x)}{2 h (d g-c h)^2}-\frac{d^2 q r \log (g+h x)}{2 h (d g-c h)^2}+\frac{d q r}{2 h (g+h x) (d g-c h)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2495
Rule 44
Rubi steps
\begin{align*} \int \frac{\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{(g+h x)^3} \, dx &=-\frac{\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{2 h (g+h x)^2}+\frac{(b p r) \int \frac{1}{(a+b x) (g+h x)^2} \, dx}{2 h}+\frac{(d q r) \int \frac{1}{(c+d x) (g+h x)^2} \, dx}{2 h}\\ &=-\frac{\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{2 h (g+h x)^2}+\frac{(b p r) \int \left (\frac{b^2}{(b g-a h)^2 (a+b x)}-\frac{h}{(b g-a h) (g+h x)^2}-\frac{b h}{(b g-a h)^2 (g+h x)}\right ) \, dx}{2 h}+\frac{(d q r) \int \left (\frac{d^2}{(d g-c h)^2 (c+d x)}-\frac{h}{(d g-c h) (g+h x)^2}-\frac{d h}{(d g-c h)^2 (g+h x)}\right ) \, dx}{2 h}\\ &=\frac{b p r}{2 h (b g-a h) (g+h x)}+\frac{d q r}{2 h (d g-c h) (g+h x)}+\frac{b^2 p r \log (a+b x)}{2 h (b g-a h)^2}+\frac{d^2 q r \log (c+d x)}{2 h (d g-c h)^2}-\frac{\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{2 h (g+h x)^2}-\frac{b^2 p r \log (g+h x)}{2 h (b g-a h)^2}-\frac{d^2 q r \log (g+h x)}{2 h (d g-c h)^2}\\ \end{align*}
Mathematica [A] time = 0.549866, size = 206, normalized size = 1.02 \[ \frac{\frac{r (g+h x) \left ((b c-a d) (b g-a h) (d g-c h) (b d g (p+q)-h (a d q+b c p))-(g+h x) \left (d^2 q (a d-b c) (b g-a h)^2 (\log (c+d x)-\log (g+h x))-b^2 p (b c-a d) (d g-c h)^2 (\log (a+b x)-\log (g+h x))\right )\right )}{(b c-a d) (b g-a h)^2 (d g-c h)^2}-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{2 h (g+h x)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.496, size = 0, normalized size = 0. \begin{align*} \int{\frac{\ln \left ( e \left ( f \left ( bx+a \right ) ^{p} \left ( dx+c \right ) ^{q} \right ) ^{r} \right ) }{ \left ( hx+g \right ) ^{3}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.25929, size = 313, normalized size = 1.55 \begin{align*} \frac{{\left (b f p{\left (\frac{b \log \left (b x + a\right )}{b^{2} g^{2} - 2 \, a b g h + a^{2} h^{2}} - \frac{b \log \left (h x + g\right )}{b^{2} g^{2} - 2 \, a b g h + a^{2} h^{2}} + \frac{1}{b g^{2} - a g h +{\left (b g h - a h^{2}\right )} x}\right )} + d f q{\left (\frac{d \log \left (d x + c\right )}{d^{2} g^{2} - 2 \, c d g h + c^{2} h^{2}} - \frac{d \log \left (h x + g\right )}{d^{2} g^{2} - 2 \, c d g h + c^{2} h^{2}} + \frac{1}{d g^{2} - c g h +{\left (d g h - c h^{2}\right )} x}\right )}\right )} r}{2 \, f h} - \frac{\log \left (\left ({\left (b x + a\right )}^{p}{\left (d x + c\right )}^{q} f\right )^{r} e\right )}{2 \,{\left (h x + g\right )}^{2} h} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.57893, size = 1413, normalized size = 7. \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]